package com.example.everying.framework.pay.model.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class JsapiPayDTO {
    @NotBlank(message = "openid不能为空")
    private String openid;

    @NotBlank(message = "商户订单号不能为空")
    private String outTradeNo;

    @Min(value = 1, message = "金额必须大于0")
    private Integer amount;

    @NotBlank(message = "商品描述不能为空")
    private String description;
}
